package com.hqyj.controller;

import com.hqyj.service.IPermissionService;
import org.apache.shiro.web.session.HttpServletSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpSession;
import java.util.HashMap;

@Controller

public class ExamineController {

    @Autowired
    IPermissionService permissionService;

    @RequestMapping("/examine")
    @ResponseBody
    public HashMap<String,Object> examine(HttpSession session){
        int sysId1 = (int)(session.getAttribute("sysId"));
        return permissionService.tips(sysId1);
    }
}
